package com.citcc.business.mapper;

import com.citcc.business.bean.CdzAppUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CdzAppUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(CdzAppUser cdzAppUser);

    int insertSelective(CdzAppUser cdzAppUser);

    CdzAppUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CdzAppUser cdzAppUser);

    int updateByPrimaryKey(CdzAppUser cdzAppUser);



    int isRegister(String phone);

    int userLogin(CdzAppUser cdzAppUser);

    int userReset(CdzAppUser cdzAppUser);

    int updateDeviceId(CdzAppUser cdzAppUser);

    CdzAppUser getAppUserByPhone(String phone);

    //查询用户所有信息
    List<CdzAppUser> selectAllList(CdzAppUser appUser);

    // 根据微信openid、支付宝openid查询用户信息
    CdzAppUser selectAppUserByOpenId(@Param("weChatOpenId") String weChatOpenId, @Param("alipayOpenId") String alipayOpenId);
}